<?php
include_once(dirname(__FILE__)."/../../src/config.inc.php");
include_once(dirname(__FILE__)."/../../src/user_data_handler.php");

class Test062 extends UnitTestCase
{
  function testDeleteUser()
  {
    MYSQL_CONNECT(DB_SERVER,DB_USER_NAME,DB_USER_PASSWORD) OR DIE("Datenbankverbindung konnte nicht hergestellt werden!");
	  @mysql_select_db(DB_NAME) or die("Datenbank nicht gefunden!");
	  
	  $userdata = new InsertUserData();
	  $userdata->insertData('9994999', 'Firsttester', 'Lasttester', 'Adressetester', '8010000', 'Stadttester', 'Landtester', '000000098', 'Arbeitgebertester', 'Mail@hosttester.net', 'Titeltester', 'www.homepagetester.com', 'Entwicklertester');
    
    PRINT "<form id=\"form\" method=\"post\" action=\"DeleteUser.php?user_id=9994999\">";
    
    $query = "SELECT FROM userdata WHERE user_id = 9994999";
    $result = MYSQL_QUERY($query);
 	  $this->assertFalse($result);
  }
}
?>